package vn.edu.uit.chemistry;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class KiemTra extends Activity{
	
	Button btnKiemTra15;
	Button btnKiemTra45;
	Button btnKiemTraBaiCu;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.screen_kiem_tra);
		
		btnKiemTra15 = (Button) findViewById(R.id.btnKiemTra15);
		btnKiemTra15.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(), KiemTra15.class);
				startActivity(intent);
				overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);
			}
		});
		
		btnKiemTra45 = (Button) findViewById(R.id.btnKiemTra45);
		
		btnKiemTraBaiCu = (Button) findViewById(R.id.btnKiemTraBaiCu);
		btnKiemTraBaiCu.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(), NopBaiCu.class);
				startActivity(intent);
				overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);
			}
		});
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			return false;
		}
		return false;
	}
}
